<?php /*a:4:{s:73:"E:\soft\phpstudy_pro\WWW\dw\application\admin\view\common\system_set.html";i:1591598806;s:67:"E:\soft\phpstudy_pro\WWW\dw\application\admin\view\public\base.html";i:1577070354;s:69:"E:\soft\phpstudy_pro\WWW\dw\application\admin\view\public\header.html";i:1577071515;s:69:"E:\soft\phpstudy_pro\WWW\dw\application\admin\view\public\footer.html";i:1577071509;}*/ ?>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="Bookmark" href="/favicon.ico" >
<link rel="Shortcut Icon" href="/favicon.ico" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5shiv.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="/static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="/static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="/static/lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="/static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="/static/h-ui.admin/css/style.css" />
<script type="text/javascript" src="/static/lib/jquery/1.9.1/jquery.min.js"></script> 
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->


<title>添加/修改 - 设置 -</title>
<style type="text/css">
	.isshow{display:block;}
	.disshow{display:none;}
</style>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span>设置管理<span class="c-gray en">&gt;</span> 设置 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<article class="page-container">
	<form class="form form-horizontal" id="form-admin-add">
		<input type="hidden" class="input-text" value="<?php echo htmlentities($data['id']); ?>" id="id" name="id">
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">公司名称：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" value="<?php echo htmlentities($data['company']); ?>" id="company" name="company">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">联系卖家：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" value="<?php echo htmlentities($data['server_tel']); ?>" id="server_tel" name="server_tel">
				<p style="font-size:10px;color:#999;">退货退款联系卖家电话</p>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">自提地点：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" value="<?php echo htmlentities($data['self_stores']); ?>" id="self_stores" name="self_stores">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">QQ客服：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" value="<?php echo htmlentities($data['server_qq']); ?>" id="server_qq" name="server_qq">
				<p style="font-size:10px;color:#999;">联系卖家QQ</p>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">购物送积分：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="number" class="input-text" value="<?php echo htmlentities($data['buy_score']); ?>" id="buy_score" name="buy_score">
				<p style="font-size:10px;color:#999;">消费n元送1积分(正整数)</p>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">签到送积分：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="number" class="input-text" value="<?php echo htmlentities($data['sign_score']); ?>" id="sign_score" name="sign_score">
				<p style="font-size:10px;color:#999;">每日签到一次送n积分(正整数)</p>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">积分规则：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<script id="editor" name="score_rule" type="text/plain" style="width:100%;height:400px;"><?php echo htmlspecialchars_decode($data['score_rule']); ?></script>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">满n元免费配送：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="number" placeholder="1500" class="input-text" value="<?php echo htmlentities($data['free_limit']); ?>" id="free_limit" name="free_limit">
				<p style="font-size:10px;color:#999;">n元(正整数)</p>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">免费配送中心点：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" value="<?php echo htmlentities($data['longitude_latitude']); ?>" placeholder="经纬度;例如:30.527540,114.346430" id="longitude_latitude" name="longitude_latitude">
                <a href="http://lbs.qq.com/tool/getpoint/" target="_blank">
                    <p class="dizhi">*点击获取地理位置</p>
                </a>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">免费配送距中心点距离：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="number" class="input-text" value="<?php echo htmlentities($data['distance']); ?>" placeholder="11" id="distance" name="distance">
				<p style="font-size:10px;color:#999;">n千米(正整数)</p>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">平台介绍：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<script id="editor_introduce" name="introduce" type="text/plain" style="width:100%;height:400px;"><?php echo htmlspecialchars_decode($data['introduce']); ?></script>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">温馨提示：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<script id="editor_tips" name="tips" type="text/plain" style="width:100%;height:400px;"><?php echo htmlspecialchars_decode($data['tips']); ?></script>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">用户协议：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<script id="editor_protocol" name="protocol" type="text/plain" style="width:100%;height:400px;"><?php echo htmlspecialchars_decode($data['protocol']); ?></script>
			</div>
		</div>
		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-3 col-sm-offset-2">
				<input id="submit" class="btn btn-primary radius" type="button" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
			</div>
		</div>
	</form>
</article>
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="/static/lib/jquery.validation/1.14.0/jquery.validate.js"></script> 
<script type="text/javascript" src="/static/lib/jquery.validation/1.14.0/validate-methods.js"></script> 
<script type="text/javascript" src="/static/lib/jquery.validation/1.14.0/messages_zh.js"></script>
<script type="text/javascript" src="/static/lib/ueditor/1.4.3/ueditor.config.js"></script>
<script type="text/javascript" src="/static/lib/ueditor/1.4.3/ueditor.all.min.js"> </script>
<script type="text/javascript" src="/static/lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript">
$(function(){
	var ue = UE.getEditor('editor');
	var ue = UE.getEditor('editor_introduce');
	var ue = UE.getEditor('editor_tips');
	var ue = UE.getEditor('editor_protocol');
});
$("#submit").click(function() {
	layer.load(1, {
	  shade: [0.1,'#fff'] //0.1透明度的白色背景
	});
	var company=$("input[name=company]").val();
	var server_tel=$("input[name=server_tel]").val();
	var self_stores=$("input[name=self_stores]").val();
	var server_qq=$("input[name=server_qq]").val();
	var buy_score=$("input[name=buy_score]").val();
	var sign_score=$("input[name=sign_score]").val();
	var score_rule=UE.getEditor('editor').getContent();
	var introduce=UE.getEditor('editor_introduce').getContent();
	var tips=UE.getEditor('editor_tips').getContent();
	var protocol=UE.getEditor('editor_protocol').getContent();
	var free_limit=$("input[name=free_limit]").val();
	var distance=$("input[name=distance]").val();
	var longitude_latitude=$("input[name=longitude_latitude]").val();
    $.ajax({
	    type: 'POST',
	    url: "<?php echo url('system_set'); ?>",
	    data: {company:company,server_tel:server_tel,server_qq:server_qq,sign_score:sign_score,buy_score:buy_score,score_rule:score_rule,introduce:introduce,longitude_latitude:longitude_latitude,free_limit:free_limit,distance:distance,tips:tips,protocol:protocol,self_stores:self_stores},
	    success: function(resdata){
	        if(resdata.code==200){
				layer.msg(resdata.msg,{icon:1,time:1000});
				setTimeout("location.reload()",1000);
	        }else{
				layer.msg(resdata.msg,{icon:2,time:3000});
	        }
	    },
	    error: function(){
			layer.msg('数据保存失败',{icon:2,time:3000});
	    }
	})
})
</script> 

<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="/static/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="/static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="/static/h-ui.admin/js/H-ui.admin.js"></script>
<!--/_footer 作为公共模版分离出去-->
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="/static/lib/jquery.contextmenu/jquery.contextmenu.r2.js"></script>
</body>
</html>